﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace charpter_1_2
{
    class Program
    {
        static void Main(string[] args)
        {
            System.Type hostType = typeof(Intelligencer);

            Intelligencer intelligencer = System.Web.Hosting.ApplicationHost.CreateApplicationHost(
                hostType,
                "/",
                System.Environment.CurrentDirectory
                )
                as Intelligencer;

            Console.WriteLine("Current Domain ID: {0}", AppDomain.CurrentDomain.Id);
            Console.WriteLine();
            Console.WriteLine(intelligencer.GetHostingEnvironmentInfo());
            Console.WriteLine();
            Console.WriteLine(intelligencer.GetHttpRuntimeInfo());
            Console.WriteLine();

        

        }
    }
}
